package com.dotflat.xj.service;


import com.dotflat.rest.service.AreableObjectBaseService;
import com.dotflat.xj.domain.Data;
import com.dotflat.xj.po.DataPO;

import java.util.List;


public interface DataService extends AreableObjectBaseService<Data> {



    DataPO addData(Data data);

    List<Data> findAllByType(String type);

    List<Data> typeByData(String type,String areaId);

    List<Data> findAllByTypeAndAreaIdAndLabel(String type,String areaId,String label);

    List<Data> findAllByTypeAndAreaId(String type,String areaId);

    Data  getData(String id);

    Data update(String ticket,String id,String val);
}
